package cn.maihe.elg.operation.supports.bank.cmb.tradingmanager.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 公用的请求对象
 *
 * @version V1.0
 * @author: Sidon
 * @createTime: 2021-09-03 15:32
 * Copyright (C)2021-2021 福建省金柠网络科技有限公司. All rights reserved.
 */
@Data
@NoArgsConstructor

public class CommonRequestParam {
    @JsonProperty("body")
    private Object body;
    @JsonProperty("head")
    private Head head;


    @Data
    @NoArgsConstructor
    public static class Head {
        @JsonProperty("funcode")
        private String funcode;
        @JsonProperty("reqid")
        private String reqid;
        @JsonProperty("userid")
        private String userid;

        @Builder
        public Head(String funcode, String reqid, String userid) {
            this.funcode = funcode;
            this.reqid = reqid;
            this.userid = userid;
        }
    }

    @Builder
    public CommonRequestParam(Object body, Head head) {
        this.body = body;
        this.head = head;
    }
}
